package cn.yj.cgs.dba.entity.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 添加修改对象
 *
 * @author 永健
 * @since 2021-05-09 12:43
 */
@Data
public class IntegralGoodVo {

    private String goodsNo;

    @NotBlank(message = "请选择商品名称")
    private String goodName;

    @NotNull(message = "请输入价格")
    private BigDecimal price;

    @NotNull(message = "请输入积分价格")
    private BigDecimal integralPrice;

    @NotBlank(message = "请选择商品类型")
    private String typeNo;

    @NotBlank(message = "请选择商品主图片")
    private String mainImgBase64;

    /**
     * 轮播图
     */
    private String swiper;
    private List<String> swiperUrl;

    private String videoImgBase64;

    @NotNull(message = "请输入库存")
    private Integer stock;

    @NotBlank(message = "请输入商品内容")
    private String content;

    private String status;
}
